<div id="table" class="dux-table">
    <div class="uk-overflow-container">
    <table class="uk-table uk-table-hover uk-text-nowrap">
        <thead>
            <tr>
                <th width="*">名称</th>
                <th width="*">路径</th>
                <th width="*" class="uk-text-center">状态</th>
                <th width="*" class="uk-text-center">级别</th>
                <th width="100" class="uk-text-center">操作</th>
            </tr>
        </thead>
        <tbody>
            <!--loop{$list as $vo}-->
            <tr>
                <td>{$vo.APP_NAME}({$vo.APP})</td>
                <td>{$vo.APP_DIR}</td>
                <td class="uk-text-center">
                    <!--if{$vo['APP_STATE']}-->
                    <a href="javascript:;" class="uk-icon-circle uk-text-success js-action" data-url="{url('state')}" data-id="" data-field="{$vo.APP}" data-val="0" data-type="status" title="启用"></a>
                    <!--{else}-->
                    <a href="javascript:;" class="uk-icon-circle uk-text-danger js-action"data-url="{url('state')}" data-id="" data-field="{$vo.APP}" data-val="1" data-type="status" title="停用"></a>
                    <!--{/if}-->
                </td>
                <td class="uk-text-center">
                    <!--if{$vo['APP_SYSTEM']}-->
                    <span class="uk-badge uk-badge-success">系统</span>
                    <!--{else}-->
                    <span class="uk-badge uk-badge-success">普通</span>
                    <!--{/if}-->
                </td>
                <td class="uk-text-center">
                    <!--if{$vo['APP_SETTING']}-->
                    <a class="uk-button uk-button-primary uk-button-small uk-icon-cog" href="{url($vo['APP_SETTING'])}" title="设置"></a>
                    <!--{/if}-->
                    <!--if{$vo['APP_INSTALL']}-->
                    <a class="uk-button uk-button-danger uk-button-small uk-icon-trash  js-action" href="javascript:;" data-url="{url('uninstall')}" data-field="{$vo.APP}" data-ask="true" data-refresh="true" title="卸载"></a>
                    <!--{else}-->
                    <a class="uk-button uk-button-primary uk-button-small uk-icon-pencil  js-action" data-url="{url('install')}" data-field="{$vo.APP}" data-ask="true" data-refresh="true" title="安装"></a>
                    <!--{/if}-->
                </td>
            </tr>
            <!--{/loop}-->
        </tbody>
    </table>
    </div>
</div>
<script>
    Do.ready('base', function () {
        $('#table').duxTable();
    });
</script>